home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’96
/
Better AD security
/
Source
/
ES Address Table.h
< prev
next >
Wrap
Text File
|
1996-06-21
|
2KB
|
61 lines
/* NAME:
ES Address Table.h
WRITTEN BY:
Dair Grant
DESCRIPTION:
Header file for ES Address Table.c. Contains the definition of a
standard address table for use with Extension Shell.
___________________________________________________________________________
*/
#ifndef __ES_ADDRESS_TABLE__
#define __ES_ADDRESS_TABLE__
//=============================================================================
// Include files
//-----------------------------------------------------------------------------
#include "ES.h"
//=============================================================================
// Structures
//-----------------------------------------------------------------------------
// The default address table has a "magic" value used to allow a Control
// Panel (for example) to make sure that it gets back what it expects when
// it asks Gestalt for the address table address. Recommended values of
// "magic" include any four letter character constant *other* than the
// Gestal selector which returns the address table address. The "version"
// value can be used for a similar sanity checking purpose. It allows
// changes in the format of the address table to be detected by all
// versions of a cdev/INIT pair. If a mismatch between expected and actual
// table versions occurs, appropriate action can be taken. Following these
// two fields an array of ProcPtrs.
//
// To extend the address table, add fields after theTable.
//-----------------------------------------------------------------------------
#pragma options align=mac68k
typedef struct {
long magicNumber;
long versionNumber;
ProcPtr theTable[kMaxNumCodeResources+1];
} ESAddressTable;
#pragma options align=reset
#endif